<?
$templateHome = new TemplateHome;
$introduction = $templateHome->Page_Static('introduction');
$field = $templateHome->Page_Static('field');
?>
<div class="header">
    <div class="logo">
        <a href="/"><img src="../themes/img/logo.png" alt="Logo công ty Minh Phú Vinh" /></a>
    </div>
    <div class="menu">
         <form action="" method="GET" class="form_search">
            <input type="text" class="keyword_search" placeholder="Tìm kiếm"/>
            <input type="submit" class="submit_search" value="SEARCH"/>
         </form>
        <ul>
            <li><a class="menu_tc" href="/"><span>Trang Chủ</span></a></li>
            <li><a class="menu_gt" href="<?=generate_page_detail_url($introduction)?>"><span>Giới Thiệu</span></a></li>
            <li><a class="menu_dv" href="<?=generate_page_detail_url($field)?>"><span>Dịch Vụ</span></a></li>
            <li><a class="menu_dd" href="/tin-tuc/"><span>Tin tức</span></a></li>
            <li><a class="menu_lh" href="/lien-he"><span>Liên Hệ</span></a></li>                                               
        </ul>
    </div>
</div><!-- End header -->
<script>
$('.submit_search').on('click',function(){
    var key_w = $('.keyword_search').val();
    $('.form_search').attr('action','/tim-kiem/'+key_w);
    return true;
});
</script>